cmake_minimum_required(VERSION 2.6)
project(demo)
add_definitions(-std=c++11)
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_BUILD_TYPE Debug)
include_directories(${PROJECT_SOURCE_DIR}/include)

# opencv
find_package(OpenCV REQUIRED)
include_directories(${OpenCV_INCLUDE_DIRS})
add_executable(demo ${PROJECT_SOURCE_DIR}/main.cpp)

target_link_libraries(demo ${OpenCV_LIBS})
add_definitions(-O2 -pthread)
